<?php

class StringUtil{
	
	public static function stringPhpPart($source){
		$startPos=strpos($source,"<?php");
		do{
			$endpos=strpos($source,"?>")+2;
			if(!$endpos) break;
			$repl=substr($source,$startPos,$endpos-$startPos);
			$source=str_replace($repl,"",$source);
			$startPos=strpos($source,"<?php");
		}while ($startPos=strpos($source,"<?php"));
		return $source;
	}
}

?>